home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / Newton Platform Info / Newton 2.0 Sample Code / Endpoints / Basic Serial-1 / Project Data < prev    next >
Encoding:
Text File  |  1995-11-05  |  1.5 KB  |  25 lines  |  [TEXT/NTP1]

  1. // Copyright Â© 1994-1995 Apple Computer, Inc. All rights reserved
  2.  
  3. constant kAction_Connect := 'connect;
  4. constant kAction_Listen := 'listen;
  5.  
  6. constant kState_Disconnected := 0;    // ready-to-go (default state)
  7. constant kState_Listen := 1;        // preparation for (asynchronous) listen
  8. constant kState_Listening := 2;        // in-process of (asynchronous) listen
  9. constant kState_Connect := 3;        // preparation for (asynchronous) connect
  10. constant kState_Connecting := 4;    // in-process of (asynchronous) connect
  11. constant kState_Connected := 5;        // connected (requires disconnect)
  12. constant kState_Disconnecting := 6;    // in-process of (asynchronous) disconnect
  13.  
  14. constant kMessage_Disconnected := "Ready to connect…";
  15. constant kMessage_Listening := "Waiting for connection...";
  16. constant kMessage_Connecting := "Connecting...";
  17. constant kMessage_Connected := "Connected, awaiting disconnect...";
  18. constant kMessage_Disconnecting := "Disconnecting, please wait...";
  19. constant kMessage_ConnectFailed := "Connection not established; no response.";
  20. constant kMessage_BufferOverrun := "The communications data buffer was overrun and has been reset.";
  21. constant kMessage_Timeout := "The connection seems to have timed out.";
  22. constant kMessage_PortInUse := "Another application seems to be using the communications port.";
  23. constant kMessage_PortDoesNotExist := "The requested communications port does not exist.";
  24. constant kMessage_OutputTooFast := "Synchronous outputs are occuring too quickly; some data was not output.";
  25.